﻿// Notify 显示居中通知对话框  js参数赋值 function(){alert('123')} ----------------------------------------------
function NotifyInfor(message, title, messageIcon) {
    F.notify({ target: '_top', message: message, messageIcon: messageIcon ? messageIcon : 'information',  header: false, displayMilliseconds: 3000, positionX: 'center', positionY: 'top' });
}

function NotifyError(message, title) {
    NotifyInfor(message, title, 'error');
}

function NotifySuccess(message, title) {
    NotifyInfor(message, title, 'success');
}

function NotifyQuestion(message, title) {
    NotifyInfor(message, title, 'question');
}

function NotifyWarning(message, title) {
    NotifyInfor(message, title, 'warning');
}

//QQ风格 Notify ---------------------------------------------------------------------------
function QQNotify(message, title, messageIcon) {
    F.notify({ target: '_top', message: message, messageIcon: messageIcon ? messageIcon : 'information', header: true, displayMilliseconds: 0, positionX: 'right', positionY: 'bottom', closable:true });
}

function QQNotifyError(message, title) {
    QQNotify(message, title, 'error');
}

function QQNotifySuccess(message, title) {
    QQNotify(message, title, 'success');
}

function QQNotifyQuestion(message, title) {
    QQNotify(message, title, 'question');
}

function QQNotifyWarning(message, title) {
    QQNotify(message, title, 'warning');
}

// Modal(组态风格) Notify ------------------------------------------------------------------
function ModalNotify(message, title, messageIcon) {
    F.notify({ target: '_top', message: message, messageIcon: messageIcon ? messageIcon : 'information', header: true, displayMilliseconds: 0, positionX: 'center', positionY: 'center', closable: true, modal:true });
}

function ModalNotifyError(message, title) {
    ModalNotify(message, title, 'error');
}

function ModalNotifySuccess(message, title) {
    ModalNotify(message, title, 'success');
}

function ModalNotifyQuestion(message, title) {
    ModalNotify(message, title, 'question');
}

function ModalNotifyWarning(message, title) {
    ModalNotify(message, title, 'warning');
}

//alert   js参数赋值 function(){alert('123')} ----------------------------------------------
function AlertInfor(message, title, js,messageIcon) {
    F.alert({ message: message, target: '_parent', title: title, messageIcon: messageIcon ? messageIcon : 'information', closable: true, ok:js  });
}

function AlertError(message, title, js) {
    AlertInfor(message, title, js, 'error');
}

function AlertSuccess(message, title,js) {
    AlertInfor(message, title, js, 'success');
}

function AlertQuestion(message, title,js) {
    AlertInfor(message, title, js, 'question');
}

function AlertWarning(message, title,js) {
    AlertInfor(message, title, js, 'warning');
}

